package com.example.monthdateselector;

import hirondelle.date4j.DateTime;

public class CalDayItem {
	private DateTime date;
	private int status;

	public CalDayItem(DateTime date) {
		this.date = date;
	}

	public String getText() {
		if (date != null) {
			int day = date.getDay();
			if (day == 1) {
				return date.getMonth() + "月" + day;
			} else {
				return String.valueOf(date.getDay());
			}
		}
		return " ";
	}
	/**maybe null*/
	public DateTime getDate() {
		return date;
	}

	public void setDate(DateTime date) {
		this.date = date;
	}

	public int getStatus() {
		return status;
	}

	public void setStatus(int status) {
		this.status = status;
	}

	@Override
	public String toString() {
		return "CalDayItem [date=" + date + ", status=" + status + "]";
	}
	
}
